__version__ = "$Revision: 88 $"
__date__ = "$Date: 2011-07-24 18:59:29 +0200 (So, 24 Jul 2011) $"
__lastChangedBy__ = "$Author: wolters@3sconsult.de $"
__repository__ = "$HeadURL: https://sir3spy.googlecode.com/svn/Sir3sPy/Utils/trunk/DbOraUtest.py $"

"""OpcClient's DocTest.
"""

def doctest_OpcClient():
    """
    >>> from Sir3sPy.Utils.Opc import OpcClient
    >>> opc=OpcClient('Matrikon.OPC.Simulation.1')
    >>> opc.connect()
    >>> (item, oldvalue, quality, time) = opc.readItems(['Sensor.aSensor'])[0]
    >>> print(type(oldvalue))
    <class 'int'>
    >>> (item,writestatus) = opc.writeItems([('Sensor.aSensor',oldvalue+1)])[0]        
    >>> print(writestatus)
    Success
    >>> (item, value, quality, time) = opc.readItems(['Sensor.aSensor'])[0]
    >>> print(value-oldvalue-1)
    0
    """    
    
if __name__ == "__main__":
    import doctest
    doctest.testmod()
